import type { Route } from '../index.type'
import Layout from '@/layout/index.vue'
import MenuBox from '@/components/menu/index.vue'
import { createNameComponent } from '../createNode'
const route: Route[] = [
  {
    path: '/menu',
    component: Layout,
    redirect: '/menu/menu-1',
    alwayShow: true,
    meta: { title: '进度查询', icon: 'sfont system-menu' },
    children: [
      {
        path: 'menu-2',
        component: createNameComponent(() => import('@/views/main/menu/menu-2.vue')),
        meta: { title: '消息中心' }
      },
      {
        path: 'menu-3',
        component: createNameComponent(() => import('@/views/main/menu/menu-3.vue')),
        meta: { title: '工作进度' }
      },
    ]
  }
]

export default route